
namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 分销佣金收入待结算表
    /// </summary>
    public partial class BrokerageIncomeInfo:BaseModel
    {       
    
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        /// <summary>
        /// 订单编号
        /// </summary>
        public Nullable<long> OrderId { get; set; }
        /// <summary>
        /// 订单详情编号
        /// </summary>
        public Nullable<long> OrderItemId { get; set; }
        /// <summary>
        /// SKUID
        /// </summary>
        public string SkuID { get; set; }
        /// <summary>
        /// 产品ID
        /// </summary>
        public long ProductID { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// SKU信息
        /// </summary>
        public string SkuInfo { get; set; }
       
        /// <summary>
        /// 店铺ID
        /// </summary>
        public Nullable<long> ShopId { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public Nullable<System.DateTime> CreateTime { get; set; }
        /// <summary>
        /// 消费者ID
        /// </summary>
        public long BuyerUserId { get; set; }
        /// <summary>
        /// 结算状态 -1不可结算 未结算，已结算
        /// </summary>
        public BrokerageStatus Status { get; set; }
        /// <summary>
        /// 结算时间
        /// </summary>
        public Nullable<System.DateTime> SettlementTime { get; set; }
        /// <summary>
        /// 推广会员ID
        /// </summary>
        public long ShareUserId { get; set; }
        /// <summary>
        /// 一级代理ID
        /// </summary>
        public long AgentTwoId { get; set; }
        /// <summary>
        /// 总代ID
        /// </summary>
        public long AgentOneId { get; set; }
        /// <summary>
        /// 分享获得佣金
        /// </summary>
        public decimal BrokerageShare { get; set; }
        /// <summary>
        /// 总代获得佣金
        /// </summary>
        public decimal BrokerageOne { get; set; }
        /// <summary>
        /// 一代获得佣金
        /// </summary>
        public decimal BrokerageTwo { get; set; }
        /// <summary>
        /// 实际应付金额
        /// </summary>
        public Nullable<decimal> TotalPrice { get; set; }
        /// <summary>
        /// 订单创建时间
        /// </summary>
        public System.DateTime OrderTime { get; set; }
    
        public virtual ICollection<BrokerageRefundInfo> Himall_BrokerageRefund { get; set; } = new HashSet<BrokerageRefundInfo>();
    }
}
